<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="ajax" uri="javawebparts/ajaxparts/taglib"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
	<head>
		<script type="text/javascript" src="js/jquery-1.2.3.js"></script>
			<link rel="stylesheet" href="css/ColorPicker.css" type="text/css"></link>
			<script type="text/javascript" src="js/ColorPicker.js"></script>
			<script type="text/javascript" src="js/jquery.MultiFile.js"></script>
			<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>

			<script type="text/javascript">
				jQuery(function($) {
					$("#vtrColorPicker").attachColorPicker();
					$("#vtrColorPicker2").attachColorPicker();
					$.fn.colorPicker.addColors(['000', '000', 'fff', 'fff']);
				});
			</script>

			<script type="text/javascript" language="JavaScript">


				tinyMCE.init({
					// General options
					mode : "exact",
                   	elements : "items.description",
					theme : "advanced"
				});


				function toogleEditorMode(sEditorID) {
					var tinyMCEmode = eval(document.getElementById('tinyMCEmode').value);
				    try {
				        if(tinyMCEmode) {
				            tinyMCE.removeMCEControl(tinyMCE.getEditorId(sEditorID));
				            document.getElementById('tinyMCEmode').value = 'false';
				            document.getElementById('editorMsg').innerHTML = 'Switch to visual html editor';
				        } else {
				        	document.getElementById('tinyMCEmode').value = 'true';
				            tinyMCE.addMCEControl(document.getElementById('items.description'), sEditorID);
				            document.getElementById('editorMsg').innerHTML = 'Switch to normal text editor';
				        }
				    } catch(e) {
				        //error handling
				    }
				}
		</script>
	</head>
	<body>
		<input type="hidden" id="tinyMCEmode" name="tinyMCEmode" value="true">
		<s:form action="previewShopItem.htm" theme="simple" method="post"
			enctype="multipart/form-data">

		<table>
			<tr>
				<td valign="top" width="100%">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<div class="blue-text16" style="margin: 0px 0px 0px 0px">
									Add item to your shop
								</div>
								<div class="header-separator-bg"
									style="margin: 10px 5px 17px 0px"></div>
								<div style="margin: 0px 0px 12px 0px">
									<table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<s:fielderror cssClass="error-text" />
													<s:actionerror cssClass="error-text" />
												</td>
											</tr>
											<tr>
												<td>
													<!--Error-->
													<table cellpadding="0" cellspacing="0" width="100%">
														<tbody>
															<tr>
																<td class="common-bold-text" width="15%" align="right" valign="top">
																	<s:text name="addSellAuctionItem.category" />
																</td>
																<td valign="top" class="error-text">
																	<div id="parentDiv"><s:text name="addSellAuctionItem.category.msg" /></div>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table width="100%" cellpadding="2" cellspacing="0" class="common-text">
																		<tbody>
																			<tr>

																				<td valign="top" width="250">
																					<table border="0" cellspacing="0" cellpadding="0">
																                  	<tr>
																                    	<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
																                      	<td class="btn-grey-middle1 "><input type="button" onclick="PPPCC=window.open('<%= basePath + "ajax/showDynamicTreeAction.htm" %>','CurrencyConverter','width=600,height=400,scrollbars=yes,resizable=false');PPPCC.focus()" name="Select Category" value="Select Category" class="submit-btn-common" /></td>
																                      	<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
																                    </tr>
																                  </table>
																				</td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top">
																				<s:if test="#attr.categoryFees[0].shop == 2">
																					<s:text name="addSellAuctionItem.category.para2">
																						<s:param name="value" value="#attr.categoryFees[1].shop" />
																						<s:param name="value" value="#attr.categoryFees[0].shop" />
																					</s:text>
																				</s:if>
																				<s:elseif test="#attr.categoryFees[0].shop == 3">
																					<s:text name="addSellAuctionItem.category.para3">
																						<s:param name="value" value="#attr.categoryFees[1].shop" />
																						<s:param name="value" value="#attr.categoryFees[2].shop" />
																						<s:param name="value" value="#attr.categoryFees[0].shop" />
																					</s:text>
																				</s:elseif>
																				<s:else>
																					<s:text name="addSellAuctionItem.category.para">
																						<s:param name="value" value="#attr.categoryFees[1].shop" />
																						<s:param name="value" value="#attr.categoryFees[2].shop" />
																						<s:param name="value" value="#attr.categoryFees[3].shop" />
																						<s:param name="value" value="#attr.categoryFees[0].shop" />
																					</s:text>
																				</s:else>
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.title" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:textfield cssClass="textfield" maxlength="%{#attr.listingOptions.maximumTitleSizeInBytes}" name="items.title" theme="simple" />
																				</td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>

																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.title.para">
																						<s:param name="value" value="#attr.listingOptions.maximumTitleSizeInBytes" />
																					</s:text>
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.subtitle" />
																</td>
																<td valign="top">
																	<table>
																		<tbody>
																			<tr>
																				<td valign="top" width="274">
																					<s:textfield cssClass="textfield" maxlength="%{#attr.listingOptions.shortTitleSize}" name="items.subTitle" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[5].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[5].shop" /></font></s:if> <s:text name="addSellAuctionItem.menu.subtitle.para"><s:param name="value" value="#attr.listingOptions.shortTitleSize" /></s:text>
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.bold" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="274">
																					<s:checkbox name="items.bold" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[6].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[6].shop" /></font></s:if> <s:text name="addSellAuctionItem.menu.bold.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>

															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.titlecolor" />
																</td>
																<td valign="top">
																	<div id="colorPickerDiv"
																		style="position: absolute; visibility: hidden;">
																	</div>
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="274">
																					<table border="0" cellpadding="0" cellspacing="0"
																						width="250">
																						<tbody>
																							<tr>
																								<td>
																									<s:textfield cssClass="textfield" id="vtrColorPicker"
																										readonly="true" name="items.colored" size="7" value="%{items.colored}" />
																								</td>
																							</tr>
																							<tr>
																								<td>
																								</td>
																							</tr>
																						</tbody>
																					</table>
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[7].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[7].shop" /></font></s:if> <s:text name="addSellAuctionItem.menu.titlecolor.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>

																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.backgroundcolor" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="274">
																					<select name="items.bgColor" size="1" class="textfield">
																					<option value=""></option>
																					<s:set var="tmpbgColors" value="#attr.listingOptions.posibleItemBacgroundColors" />
																					<% String[] bgColors = pageContext.getAttribute("tmpbgColors").toString().split("\\|"); %>
																				    <% for(String bgColor : bgColors) { %>
																				      	<option value="<%= bgColor %>" style="background-color: <%= bgColor %>;"><%= bgColor %></option>
																				    <% } %>
																					</select>
																				</td>

																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[8].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[8].shop" /></font></s:if> <s:text name="addSellAuctionItem.menu.backgroundcolor.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.description" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">

																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<a href="#"onclick="toogleEditorMode('items.description')"><div id="editorMsg">Switch
																						to visual html editor</div></a>
																				</td>
																				<td></td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.description.para">
																						<s:param name="value" value="#attr.listingOptions.maximumDescriptionSizeInBytes"></s:param>
																					</s:text>
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0" width="100%">

																		<!--EditData-->
																		<!--CopyData-->
																		<tbody>
																			<tr>
																				<td valign="top">
																					<s:textarea cssClass="textfield" id="items.description" name="items.description" rows="12"
																						cols="70" cssStyle="width: 100%" theme="simple" />
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</td>
															</tr>

															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.companyprofile" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="274">
																					<s:checkbox name="items.companyProfile"
																						theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[22].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[22].shop" /></font></s:if> <s:text name="addSellAuctionItem.menu.companyprofile.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>

																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.homepage" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:textfield cssClass="textfield" name="items.homePage" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[16].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[16].shop" /></font></s:if> <s:text name="addSellAuctionItem.menu.homepage.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.itemlanguage" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:select list="languageList" cssClass="textfield" value="%{defaultLanguage}"
																						name="items.itemLanguage.languageCode" listKey="languageCode"
																						listValue="%{getText('lang_' + languageCode)}" theme="simple" />
																				</td>

																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.itemlanguage.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.itemlocation" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.region" />															</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:select theme="simple" cssClass="textfield"
																						headerValue="Select Region" headerKey="0"
																						name="items.locationCategoriesByRegion.categoryId"
																						value="%{defaultRegion}" id="region"
																						list="regionList" listKey="categoryId" listValue="categoryName"></s:select>
																					<ajax:event ajaxRef="CommonForm/showCountryChange" />
																				</td>

																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top"></td>
																			</tr>
																		</tbody>
																	</table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.country" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:select cssClass="textfield" theme="simple"
																						headerValue="Select Country" headerKey="0" value="%{defaultCountry}" id="country"
																							list="countryList" listKey="categoryId" listValue="categoryName"
																								name="items.locationCategoriesByCountry.categoryId" id="country" />
																					<ajax:event ajaxRef="CommonForm/showStateChange" />
																				</td>

																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.state" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">

																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:select theme="simple" cssClass="textfield" headerKey="0" id="state"
																							headerValue="Select State" value="%{items.locationCategoriesByState.categoryId}"
																								list="stateList" listKey="categoryId" listValue="categoryName"  name="items.locationCategoriesByState.categoryId"/>
																				</td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																			</tr>

																		</tbody>
																	</table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.zipcity" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<table border="0" cellpadding="0" cellspacing="0"
																						width="250">
																						<tbody>
																							<tr>
																								<td width="60">
																									<s:textfield cssClass="textfield" name="items.shipZip" size="20"
																										theme="simple" />
																								</td>

																								<td width="4"></td>
																								<td width="186" nowrap="nowrap">
																									<s:textfield cssClass="textfield" name="items.city" size="20"
																										theme="simple" />
																								</td>
																							</tr>
																						</tbody>
																					</table>
																				</td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top"></td>
																			</tr>
																		</tbody>
																	</table>
																</td>
															</tr>

															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<a name="File"></a><s:text name="addSellAuctionItem.menu.uploadfile" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" class="common-text">
																					<b><s:text name="addSellAuctionItem.menu.uploadfile.notes" /></b>
																					<ul>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.note1" />
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.note2">
																								<s:param name="value" value="#attr.listingOptions.numberOfFilesAllowedToUpload"></s:param>
																							</s:text>
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.note3">
																								<s:param name="value" value="#attr.listingOptions.maximumUploadFileSize"></s:param>
																							</s:text>
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.note4">
																								<s:param name="value" value="#attr.listingOptions.maximumUploadTotalFilesSize"></s:param>
																							</s:text>
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.note5">
																								<s:param name="value" value="#attr.listingOptions.filesExtensionsAllowed"></s:param>
																							</s:text>
																						</li>
																					</ul>

																					<b><s:text name="addSellAuctionItem.menu.uploadfile" /></b>
																					<ol>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.step1" />
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.step2" />
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.step3" />
																						</li>
																						<li>
																							<s:text name="addSellAuctionItem.menu.uploadfile.step4" />
																						</li>
																					</ol>
																			  </td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>

															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>File:</b>																</td>
																<td valign="top">
																	<table border="0" cellpadding="0" cellspacing="0">
																		<tbody>
																			<tr>
																				<td width="4"></td>
																				<td>
																					<input type="file" name="upload" class="multi" maxlength="5"/>
																					<s:submit action="uploadShopFile" value="Upload file" />
																				</td>
																			</tr>
																			<tr>
																				<td width="4"></td>
																				<td>

																				</td>
																			</tr>
																		</tbody>
																	</table>
																</td>
															</tr>
															<tr>

																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" class="common-text">
																					<b><font color="red"><s:text name="addSellAuctionItem.menu.manageuploadfile" /></font> </b>
																					<br>
																					<table border="0" cellpadding="2" cellspacing="1"
																						width="100%">
																						<tbody>
																							<tr>
																								<!--<td width="40%"  align="center">File</td>-->

																								<td align="center" class="grid-header-bg grid-header-text">
																									<s:text name="addSellAuctionItem.menu.manageuploadfile.size" />
																								</td>
																								<td align="center" class="grid-header-bg grid-header-text">
																									<s:text name="addSellAuctionItem.menu.manageuploadfile.shop" />
																								</td>
																								<td align="center" class="grid-header-bg grid-header-text">
																									<s:text name="addSellAuctionItem.menu.manageuploadfile.thumbnail" />
																								</td>
																								<td align="center" class="grid-header-bg grid-header-text">
																									<s:text name="addSellAuctionItem.menu.manageuploadfile.gallerie" />
																								</td>
																								<td align="center" class="grid-header-bg grid-header-text">
																									<s:text name="addSellAuctionItem.menu.manageuploadfile.preview" />
																								</td>
																							</tr>
																							<s:set var="total" value="0" />
																						<s:iterator value="uploadedFiles" status="raw">
																							<s:set var="total" value="%{#total + size}" />
																							<tr>
																								<td align="center" class="grid-bg grid-header-text">
																									<s:property value="size" />
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<a href="uploadFile.htm?deleteAction=<s:property value="#raw.index" />">Delete</a>
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<input type="radio" name="thumbnailId" value="<s:property value="#raw.index" />" />
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<input type="radio" name="gallaryId" value="<s:property value="#raw.index" />" />
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<s:if test="contentType == 'application/msword'">
																										<img src="images/doc.jpeg" height="20" width="20" />
																									</s:if>
																									<s:elseif test="contentType == 'text/plain'">
																										<img src="images/txt.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'application/pdf'">
																										<img src="images/pdf.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'audio/x-wav'">
																										<img src="images/wav.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'audio/midi'">
																										<img src="images/mid.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'video/quicktime'">
																										<img src="images/mov.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'video/msvideo'">
																										<img src="images/avi.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:else>
																										<img src="servlet/ImageServlet?dto=path&id=1&name=<s:property value="name" />" height="20" width="20" />
																									</s:else>
																								</td>
																							</tr>
																						</s:iterator>
																						</tbody>
																				  </table>
																				  <s:if test="uploadedFiles != null">
																					<s:text name="addSellAuctionItem.menu.manageuploadfile.stats">
																						<s:param name="value" value="uploadedFiles.size" />
																						<s:param name="value" value="%{#total / 1024}" />
																						<s:param name="value" value="%{fileFees}" />
																					</s:text>
																					</s:if>
																					<s:else>
																						<s:text name="addSellAuctionItem.menu.manageuploadfile.stats">
																							<s:param name="value" value="0" />
																							<s:param name="value" value="0" />
																							<s:param name="value" value="0" />
																						</s:text>
																					</s:else>
																			  </td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
														<s:if test="uploadedFiles != null && uploadedFiles.size > 0">
															<tr>
											                  	<td class="form_lable" valign="top" align="right"> </td>
											                  	<td valign="top" class="common-text"><table cellpadding="4" cellspacing="0">
											                    	<tbody><tr>
												                      <td valign="top" width="250"><table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="50%"><input class="rb" name="items.mediaShow" value="4" type="radio"><s:text name="media_type_4" /></td><td valign="top" width="50%"><input class="rb" name="items.mediaShow" value="2" type="radio"><s:text name="media_type_3" /></td></tr></tbody></table></td>
												                      <td valign="top" width="20"> </td>
												                      <td valign="top"><s:if test="#attr.optionsFees[15].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[15].shop" /></font></s:if> <s:text name="media_type_3" /></td>
											                    	</tr>
											                    	<tr>
											                      		<td valign="top"><s:text name="media_show_type_label" /></td>
											                      		<td colspan="2" valign="top"> </td>
											                    	</tr></tbody>
											                    </table></td>
											                </tr>
											                <tr>
											                  	<td class="common-text" valign="top" align="right"><b><s:text name="gallery_lable" /></b></td>
											                  	<td valign="top"><table cellpadding="4" cellspacing="0">
											                    	<tbody><tr><td valign="top" width="278"><input class="cb" name="items.gallery" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[2].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[2].shop" /></font></s:if> <s:text name="gallery_desc_edit" /></td></tr>
											                  		</tbody></table></td>
											                </tr>
											                <tr>
											                  	<td class="common-text" valign="top" align="right"><b><s:text name="Gallery_featured_label" /></b></td>
											                  	<td valign="top"><table cellpadding="4" cellspacing="0">
											                    <tbody><tr><td valign="top" width="278"><input class="cb" name="items.galleryFeatured" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[3].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[3].shop" /></font></s:if> <s:text name="gallery_featured_desc" /></td></tr>
											                  	</tbody></table></td>
											                </tr>
											                <tr>
											                  	<td class="common-text" valign="top" align="right"><b><s:text name="Gallery_plus_label" /></b></td>
											                  	<td valign="top"><table cellpadding="4" cellspacing="0">
											                    <tbody><tr><td valign="top" width="278"><input class="cb" name="items.galleryPlus" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[4].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[4].shop" /></font></s:if> <s:text name="gallery_plus_desc" /></td></tr>
											                  	</tbody></table></td>
											                </tr>
														</s:if>
															<!--Files_Features-->
															<tr>
																<td align="right" valign="top" class="common-bold-text">
																	<s:text name="addSellAuctionItem.menu.quantity" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:textfield cssClass="textfield" name="items.quantity" theme="simple" />
																				</td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.quantity.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>

																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.duration" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<select size="1" name="items.duration" class="textfield">
																					<s:set var="durations" value="#attr.listingOptions.auctionDurationPeriodsAllowed" />
																					<% String[] durationList = pageContext.getAttribute("durations").toString().split(","); %>
																					<% for(int index = 0; index < durationList.length; index++) { %>
																						<option value="<%= Integer.parseInt(durationList[index].trim()) %>">
																							<%= durationList[index].trim() %> <%= (Integer.parseInt(durationList[index].trim()) > 1) ? "Days" : "Day" %>
																						</option>
																					<% } %>
																				  	</select>
																				</td>

																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.duration.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.autoresubmit" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:set var="times" value="#attr.listingOptions.maximumAutoResubmitNumber" />
																					<select size="1" name="items.resubmit" class="textfield">
																					<% for(int index = 0; index <= Integer.parseInt(pageContext.getAttribute("times").toString()); index++) { %>
																						<option value="<%= index %>">
																							<%= index %> <%= (index > 1) ? "Times" : "Time" %>
																						</option>
																					<% } %>
																				  </select>
																				</td>
																				<td valign="top" class="common-text">
																					In the event that your item does not sell, we can
																					automatically resubmit it for you.																				</td>
																			</tr>

																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Currency:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:select name="items.currency.id" cssClass="textfield" list="currency" listKey="id" listValue="currency" value="%{defaultCurrency}" />
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Price:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<s:textfield cssClass="textfield" name="items.startBid" theme="simple" />
																				</td>
																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>

																				<td valign="top" class="common-text">
																					Per item
																					<br>
																					This is the price at which your item will be
																					initially offered for bidding. Please keep this as
																					low as possible. Bids below this amount will not be
																					accepted.
																					<a
																						href="#/auction_demo/cgi/auction.cgi?action=GetHelp&amp;Page=AuctionFees&amp;Lang=en">Fees</a>
																			  </td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Home page featured:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:checkbox name="items.homePageFeatured"
																						theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[0].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[0].shop" /></font> </s:if>Receive the
																					highest level of visibility. Your listing will most
																					likely be displayed on our Home page. It will be
																					showcased in a special featured section. If this
																					option was set before, it cannot be canceled.																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>

															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Category featured:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:checkbox name="items.categoryFeatured"
																						theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[1].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[1].shop" /></font></s:if> Your listing
																					will be featured in a special section that appears
																					on top of our category listings and search results
																					pages. If this option was set before, it cannot be
																					canceled.																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>

																<td class="common-bold-text" align="right" valign="top">
																	<b>Framed:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:checkbox name="items.framed" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[21].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[21].shop" /></font></s:if> The "Frame"
																					option surrounds your listing with a colored frame
																					to remark it.																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Special icon:</b>																</td>

																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<table border="0" cellpadding="0" cellspacing="0"
																						width="250">
																						<tbody>
																							<tr>
																								<td style="border: 1px solid black;"
																									bgcolor="#ffffff" valign="bottom" width="22">
																									<ilayer id="GiftShow" width="22" height="22">
																									<layer id="GiftShow1" width="22" height="22">
																									<div id="GiftShow2">
																									</div>
																									</layer>
																									</ilayer>
																								</td>
																								<td width="228">
																									<select size="1" name="items.giftIcon" onchange="ShowImage(this.options[this.selectedIndex].value)"
																										class="textfield" style="width: 228px;">
																										<option value=";Not Selected">
																											Not Selected
																										</option>
																										<option value="Icon_Gift.gif;Gift">
																											Gift
																										</option>
																										<option
																											value="Icon_MoneyBack.gif;Money Back Guarantee">
																											Money Back Guarantee
																										</option>
																										<option value="Icon_MustGo.gif;Must Go">
																											Must Go
																										</option>
																										<option value="Icon_New.gif;New">
																											New
																										</option>
																										<option value="Icon_Refurb.gif;Refurbished">
																											Refurbished
																										</option>
																										<option value="Icon_Rare.gif;Very Rare">
																											Very Rare
																										</option>
																								  </select>
																								</td>

																							</tr>
																						</tbody>
																					</table>
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[9].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[9].shop" /></font></s:if> Special icon
																					appears next to your listing title in the listing
																					pages to accentuate your item.																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Cross promotion:</b>																</td>

																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr class="common-bold-text">
																				<td valign="top" width="30%">
																					<input class="cb" name="items.crossPromotion" value=""
																						checked="checked" type="radio">
																					NONE																			  </td>
																		  </tr>
																			<tr>
																				<td width="278" valign="top" class="common-bold-text">
																					<input class="cb" name="items.crossPromotion" value="3"
																						type="radio">
																					3 Items
																					<s:if test="#attr.optionsFees[17].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[17].shop" /></font></s:if>
																			  </td>
																				<td rowspan="3" valign="top" class="common-text">
																					When a buyer views your advertisement, some other
																					specific items of your choice are automatically
																					displayed to the buyer at the end of the item page.
																					Cross-promoting will increase your sales and
																					exposure. You can select in your account
																					administration your cross-promotion preferences to
																					customise which items are automatically displayed.
																					You may select items from any category and they
																					will be automatically shown at random. If you
																					select this feature for this item, it will be
																					automatically registered as one of the items from
																					your cross-promotion preferences.																				</td>
																			</tr>
																			<tr class="common-bold-text">
																				<td valign="top" width="278">
																					<input class="cb" name="items.crossPromotion" value="6"
																						type="radio">
																					6 Items
																					<s:if test="#attr.optionsFees[18].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[18].shop" /></font></s:if>
																				</td>
																		  </tr>
																			<tr class="common-bold-text">
																				<td valign="top" width="278">
																					<input class="cb" name="items.crossPromotion" value="9"
																						type="radio">
																					9 Items
																					<s:if test="#attr.optionsFees[19].shop != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[19].shop" /></font></s:if>
																				</td>
																		  </tr>

																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Payment methods:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:select list="#attr.paymentGateways" listKey="id" listValue="accountName" name="PaymentMethods" size="4"
																						multiple="true" cssClass="textfield" />
																				</td>
																				<td valign="top" class="common-text">
																					Choose all that you will accept.																				</td>
																			</tr>

																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:textarea cssClass="textfield" name="items.paymentDetails" rows="3"
																						cols="50" theme="simple" />
																				</td>
																				<td valign="top" class="common-bold-text">
																					Additional payment instructions:																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Will ship to:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:select list="shipToList" listKey="id" listValue="name" name="items.shipTo" size="5" multiple="true"
																						cssClass="textfield" />
																				</td>
																				<td valign="top"></td>
																			</tr>

																		</tbody>
																	</table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:textarea cssClass="textfield" name="items.shipToDetails" rows="3"
																						cols="50" theme="simple" />
																				</td>
																				<td valign="top" class="common-bold-text">
																					Additional shipping instructions																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Shipping time:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:select list="shippingTimeList" listKey="id" listValue="name" name="items.shipTime.id" size="1"
																						cssClass="textfield" />
																				</td>
																				<td valign="top" class="common-text">
																					Specify when you will ship the item																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Shipping cost:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:textfield cssClass="textfield" name="items.shipSum" theme="simple" />
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top" class="common-text">
																					Specify the total amount you will charge for
																					shipping within your country.																				</td>

																			</tr>
																			<tr>
																				<td valign="top" width="278">
																					<s:select list="shippingCostChargesList" listKey="id" listValue="name" name="items.shipPaymentDetails" size="1"
																						cssClass="textfield" />
																				</td>
																				<td valign="top" class="common-text">
																					Choose the way you will use to calculate the
																					shipping cost charges																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>

																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:textarea cssClass="textfield" name="items.shipPaymentDetails"
																						rows="3" cols="50" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					Additional shipping payment instructions: In order
																					to calculate the shipping costs, please specify:
																					Weight of the item / Package size / Shipping
																					service / Originating ZIP Code / Handling costs																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Shipping insurance:</b>																</td>

																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="274">
																					<s:select list="shippingInsuranceList" listKey="id" listValue="name" name="items.shipInsurance" size="1"
																						cssClass="textfield" />
																				</td>
																				<td valign="top" class="common-text">
																					Specify the shipping insurance conditions																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Euro US Dollar: </b>																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">

																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:textfield cssClass="textfield" name="items.insurance" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					Specify the item's shipping insurance value.																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Sales tax:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<table border="0" cellpadding="0" cellspacing="0"
																						width="250">
																						<tbody>
																							<tr>

																								<td valign="top">
																									<s:textfield cssClass="textfield" name="items.salesTax"
																										theme="simple" />
																									%
																								</td>
																								<td align="right" valign="top">
																									<input class="cb" name="ShipTax" value="1"
																										type="checkbox">
																								</td>
																							</tr>
																						</tbody>
																					</table>
																				</td>
																				<td valign="top" class="common-text">
																					Apply sales tax to the total including shipping
																					&amp; handling																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Return period:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="270">
																					<s:select list="returnPeriodList" listKey="id" listValue="name" name="items.returnPeriod.id" size="1"
																						cssClass="textfield" />
																				</td>
																				<td valign="top"></td>
																			</tr>
																		</tbody>
																	</table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<b>Refund method:</b>																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="270">
																					<s:select list="refundMethodList" listKey="id" listValue="name" name="items.returnMethod.id" size="1"
																						cssClass="textfield" />
																				</td>
																				<td valign="top"></td>
																			</tr>
																		</tbody>
																	</table>
																</td>

															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="270">
																					<s:textarea cssClass="textfield" name="items.returnDetails" rows="3"
																						cols="50" theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					Please give a clear instructions on your return
																					policy.																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>

														</tbody>
												  </table>
													<table valign="middle" align="center" border="0"
														cellpadding="0" cellspacing="0" width="100%">
														<tbody>
															<tr>
																<td style="border-bottom: 1px dotted rgb(30, 80, 180);"
																	height="5">
																	<img src="#/auction_demo/images/dot1x1.gif" border="0"
																		height="5">
																</td>
															</tr>
															<tr>
																<td height="5">
																	<iframe id="comFrame" name="comForm"
																		src="#/auction_demo/cgi/auction.cgi?action=SelectRegion&amp;Language=en&amp;FormName=Add_Item_Form"
																		style="border: medium none;" scrolling="no"
																		width="100%" height="5"></iframe>
																</td>
															</tr>
														</tbody>
													</table>
													<table cellpadding="0" cellspacing="0">
														<tbody>
															<tr>
																<td valign="top" colspan="2" class="common-text">

																	<p align="justify">
																		<b><s:text name="addSellAuctionItem.menu.desclaimer" /></b>
																		<br>
																		<s:text name="addSellAuctionItem.menu.desclaimer.para">
																			<s:param name="value" value="#attr.configuration.siteName"></s:param>
																			<s:param name="value" value="#attr.configuration.siteName"></s:param>
																			<s:param name="value" value="#attr.configuration.siteName"></s:param>
																			<s:param name="value" value="#attr.configuration.siteName"></s:param>
																		</s:text>
																	</p>

															  </td>
															</tr>
															<tr>
									                          <td align="right"><div style="margin:0px 8px 0px 0px">
									                              <table border="0" cellspacing="0" cellpadding="0">
												                  	<tr>
												                    	<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
												                      	<td class="btn-grey-middle1 "><input type="submit" name="Submit"  value="Submit" class="submit-btn-common" /></td>
												                      <td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
												                    </tr>
												                  </table>
									                            </div></td>
									                          <td><table border="0" cellspacing="0" cellpadding="0">
												                  	<tr>
												                    	<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
												                      	<td class="btn-grey-middle1 "><input type="reset" name="Reset" value="Reset" class="submit-btn-common" /></td>
												                      <td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
												                    </tr>
												                  </table>
									                          </td>
									                        </tr>
														</tbody>
												  </table>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<s:hidden name="type" value="3" />
		</s:form>
	</body>
</html>